package com.system.exam.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.system.exam.admin.entity.BusQuestionInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author Administrator
 * @description 针对表【bus_question_info(问题表)】的数据库操作Mapper
 * @createDate 2023-10-24 12:47:55
 * @Entity com.system.exam.admin.entity.BusQuestionInfo
 */
public interface BusQuestionInfoMapper extends BaseMapper<BusQuestionInfo> {
    @Update("update bus_question_info set category_name=#{categoryName} where category_id=#{categoryId}")
    int updateBusQuestionInfoById(@Param("categoryName") String categoryName, @Param("categoryId") long categoryId);


    @Delete("delete from  bus_question_info  where category_id=#{categoryId};")
    int deleteBusQuestionInfoById(long categoryId);
}




